<!--Descriptive page name, messages and instructions-->
<h2>Fandoms in need of a wrangler</h2>
<!--/descriptions-->

<!--subnav-->
<%= will_paginate(@fandoms) %>

<!--sorting subnav-->
<ul class="sorting navigation" role="navigation">
  <li><h4><%= ts('Sort By') %></h4></li>
  <li><%= link_to ts('Name'), unassigned_fandoms_path %></li>
  <li><%= link_to ts('Work Count'), unassigned_fandoms_path(:sort => :count) %></li>
</ul>
<!---/subnav-->
<!--/subnav-->

<!--main content-->
<h3 class="landmark">Listing fandoms</h3>

<% unless @fandoms.blank? %>
  <ul class="fandoms">
    <% for fandom in @fandoms %>
      <li>
        <%= link_to fandom.name + " (#{fandom.count})", {:controller => :tags, :action => :show, :id => fandom.to_param} %>
      </li>
    <% end %>
  </ul>
<% end %>

<!--subnav-->
<h3 class="landmark">Filters</h3>
<%= form_tag unassigned_fandoms_path, :class => 'filters', :method => :get do %>
  <dl class="filters">
    <dt>Filter by Media</dt>
    <dd>
      <p>Show only:</p>
      <%= select_tag :media_id, options_for_select([''] + Media.canonical.by_name.map{|m| m.name}, params[:media_id]) %>
    </dd>
  </dl>
  <p class="submit"><%= submit_tag 'Go' %></p>  
<% end %>
<div class="clear"><!--presentational, phase me out--></div>
<h3 class="landmark">Next Page</h3>
<%= will_paginate(@fandoms) %>
<!--/subnav-->
